import { axios } from '@/utils/request'

/**
 * 查询问卷题目答案表
 *
 * @author bear
 * @date 2022-01-05 16:23:04
 */
export function questionnaireSubjectAnswerPage (parameter) {
  return axios({
    url: '/questionnaireSubjectAnswer/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 问卷题目答案表列表
 *
 * @author bear
 * @date 2022-01-05 16:23:04
 */
export function questionnaireSubjectAnswerList (parameter) {
  return axios({
    url: '/questionnaireSubjectAnswer/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加问卷题目答案表
 *
 * @author bear
 * @date 2022-01-05 16:23:04
 */
export function questionnaireSubjectAnswerAdd (parameter) {
  return axios({
    url: '/questionnaireSubjectAnswer/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑问卷题目答案表
 *
 * @author bear
 * @date 2022-01-05 16:23:04
 */
export function questionnaireSubjectAnswerEdit (parameter) {
  return axios({
    url: '/questionnaireSubjectAnswer/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除问卷题目答案表
 *
 * @author bear
 * @date 2022-01-05 16:23:04
 */
export function questionnaireSubjectAnswerDelete (parameter) {
  return axios({
    url: '/questionnaireSubjectAnswer/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出问卷题目答案表
 *
 * @author bear
 * @date 2022-01-05 16:23:04
 */
export function questionnaireSubjectAnswerExport (parameter) {
  return axios({
    url: '/questionnaireSubjectAnswer/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
